package com.example.demo;

class Car{
    Framework framework;
    public Car(int size){
        framework = new Framework(size);
        System.out.println("Car init...");
    }
    public void rum(){
        System.out.println("Car run");
    }
}
class Framework{
Bottom bottom;
public Framework(int size){
    bottom = new Bottom(size);
    System.out.println("Framework run");
}
class Bottom {
Tire tire;
public Bottom(int size){
    tire = new Tire(size);
    System.out.println("Bottom run");}
}
}
class Tire{
    private int size;
    public Tire(int size){
        this.size = 17;
        System.out.println("轮胎尺⼨：" + size);
}
}
public class MVC_0727 {
    public static void main(String[] args) {
        Car car = new Car(2);
    }
}
